﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类SYSTEM_LANGUAGE
     ///</summary>
     public class SYSTEM_LANGUAGE
     {
         private int __ID=0 ;
         private string __CONDITION=string.Empty ;
         private string __SimplifiedChinese=string.Empty ;
         private string __TraditionalChinese=string.Empty ;
         private string __English=string.Empty ;
         private string __Portuguese=string.Empty ;
         private string __CharacterType=string.Empty ;
         private string __ProgramName=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public SYSTEM_LANGUAGE()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("CONDITION",false);
             this.__Changed.Add("SimplifiedChinese",false);
             this.__Changed.Add("TraditionalChinese",false);
             this.__Changed.Add("English",false);
             this.__Changed.Add("Portuguese",false);
             this.__Changed.Add("CharacterType",false);
             this.__Changed.Add("ProgramName",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__CONDITION =string.Empty;
             this.__SimplifiedChinese =string.Empty;
             this.__TraditionalChinese =string.Empty;
             this.__English =string.Empty;
             this.__Portuguese =string.Empty;
             this.__CharacterType =string.Empty;
             this.__ProgramName =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["CONDITION"] = false;
             this.__Changed["SimplifiedChinese"] = false;
             this.__Changed["TraditionalChinese"] = false;
             this.__Changed["English"] = false;
             this.__Changed["Portuguese"] = false;
             this.__Changed["CharacterType"] = false;
             this.__Changed["ProgramName"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[CONDITION]的数据
         /// </summary>
         public string CONDITION
         {
              set{ __CONDITION = value.Replace("'","’"); __Changed["CONDITION"] = true;}
              get{return __CONDITION;}
         }
         /// <summary>
         ///设置或获取类中的[SimplifiedChinese]的数据
         /// </summary>
         public string SimplifiedChinese
         {
              set{ __SimplifiedChinese = value.Replace("'","’"); __Changed["SimplifiedChinese"] = true;}
              get{return __SimplifiedChinese;}
         }
         /// <summary>
         ///设置或获取类中的[TraditionalChinese]的数据
         /// </summary>
         public string TraditionalChinese
         {
              set{ __TraditionalChinese = value.Replace("'","’"); __Changed["TraditionalChinese"] = true;}
              get{return __TraditionalChinese;}
         }
         /// <summary>
         ///设置或获取类中的[English]的数据
         /// </summary>
         public string English
         {
              set{ __English = value.Replace("'","’"); __Changed["English"] = true;}
              get{return __English;}
         }
         /// <summary>
         ///设置或获取类中的[Portuguese]的数据
         /// </summary>
         public string Portuguese
         {
              set{ __Portuguese = value.Replace("'","’"); __Changed["Portuguese"] = true;}
              get{return __Portuguese;}
         }
         /// <summary>
         ///设置或获取类中的[CharacterType]的数据
         /// </summary>
         public string CharacterType
         {
              set{ __CharacterType = value.Replace("'","’"); __Changed["CharacterType"] = true;}
              get{return __CharacterType;}
         }
         /// <summary>
         ///设置或获取类中的[ProgramName]的数据
         /// </summary>
         public string ProgramName
         {
              set{ __ProgramName = value.Replace("'","’"); __Changed["ProgramName"] = true;}
              get{return __ProgramName;}
         }
    }
}
